<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/page/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>招聘结果跟踪统计表</title>
<jsp:include page="/page/common/common.jsp" />
<link  href="${ctx}/css/recruitmentresult.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/recruitmentresult/recruitmentresult.js"></script>
</head>
<body>
<center><h2>招聘结果跟踪统计表</h2></center>
<form action="${ctx}/recruitmentresult/countResult.do" method="post">
	<input name="pageno" value="1" type="hidden"/>
	<table width="98%" align="center" cellpadding="1" cellspacing="1"
		bgcolor="#ecf6fc">
		<tr height="30" >
<td>状态：<select id="status" name="statu">
				<option value="-1">--请选择--</option>
				<c:forEach items="${objStatus}" var="s">
								<option value="${s[0]}">
									${s[1]}</option>
				</c:forEach>				
			</select></td>
				<td>开始时间：<input type="text" name="beginTime"
			id="beginTime" class="Wdate"
			onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" /></td><td>结束时间：<input type="text" name="endTime"
			id="endTime" class="Wdate"
			onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" /></td>
			<td align="center">
				<input type="submit"  value="查询" style="font-size:12px;" id="btn_search"/>
			</td>
		</tr>
	</table>
</form>
<p/>
<p/>
<table width="98%" align="center" cellpadding="1" cellspacing="1" class="stripe_tb">
	<tr>
		<th align="center">职位名称</th>
		<th align="center">姓名</th>
		<th align="center">日期</th>
		<th align="center">状态</th>
		<th align="center">原因</th>
		<th align="center">备注</th>
	</tr>
	<c:if test="${page.totalSize gt 0}">
		<c:forEach items="${page.result}" var="pageData" varStatus="status">
			<tr height="10" align="center" valign="middle" bgcolor="#FFFFFF" id="_recen${pageData.id}">
				<td align="center" title="职位名称">${pageData.position.positionName}&nbsp;</td>
				<td align="center" title="姓名">${pageData.candidateName}</td>
				<td align="center" title="登记日期"> <fmt:formatDate value="${pageData.registrationDate}" pattern="yyyy-MM-dd"/>&nbsp; </td>
				
				<td align="center" title="状态">
				<c:choose>
					<c:when test="${pageData.status == '0'}">可面试</c:when>
					<c:when test="${pageData.status == '1'}">不可面试</c:when>
					<c:when test="${pageData.status == '2'}">初试</c:when>
					<c:when test="${pageData.status == '3'}">复试</c:when>
					<c:when test="${pageData.status == '4'}">录用</c:when>
					<c:when test="${pageData.status == '5'}">不合格</c:when>
					<c:when test="${pageData.status == '6'}">人才储备</c:when>
					<c:when test="${pageData.status == '7'}">跟踪</c:when>
					<c:when test="${pageData.status == '8'}">转正</c:when>
					<c:when test="${pageData.status == '9'}">其它</c:when>
					<c:when test="${pageData.status == '10'}">离职</c:when>
					<c:otherwise>其它</c:otherwise>
				</c:choose>
				</td>
				<td align="center" title="原因">${pageData.reason}&nbsp;</td>
				<td align="center" title="备注">${pageData.remark}&nbsp;</td>
			</tr>
		</c:forEach>
	</c:if>
	<c:if test="${page.totalSize le 0}">
		<tr bgcolor="#FFFFFF">
			<td colspan="6" align="center">暂无信息</td>
		</tr>
	</c:if>
	<tr>
		<td colspan="6" align="right">
		<page:paging goUrl="${ctx}/recruitmentresult/countResult.do?queryCondition=${queryCondition}"  pageUtil="${page}" />
		</td>
	</tr>
</table>

<div class="rsult_count" align="center"><hr/><h3>统计结果</h3></div>
<table class="stripe_tb" style="width:60%;margin-bottom: 40px;" cellspacing="0px" align="center">
	<tr><th>原因</th><th>所占比例</th></tr>
	<c:forEach items="${coutResult}" var="result">
		<tr><td>${result[0]}</td><td>${result[1]}</td></tr>
	</c:forEach>
</table>
</body>
</html>